import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'main',
      component: () => import('@/view/main'),
      redirect: { name: '_home' },
      meta: { title: '主入口整体布局' },
      children: [{
        path: '/introduction',
        name: '_introduction',
        component: () => import('@/view/page/introduction'),
        meta: { title: '个人简介', isUserCache: false, keepAlive: true }
      }, {
        path: '/list',
        name: '_list',
        component: () => import('@/view/page/list'),
        meta: { title: '根据tagId查询文章列表', isUserCache: false, keepAlive: true }
      }, {
        path: '/detail',
        name: '_detail',
        component: () => import('@/view/page/detail'),
        meta: { title: '文章详情', isUserCache: false, keepAlive: true }
      }, {
        path: '/home',
        name: '_home',
        component: () => import('@/view/content'),
        meta: { title: '个人简介', isUserCache: false, keepAlive: true }
      },{
        path: '/index',
        name: '_index',
        component: () => import('@/view/page/introduction'),
        meta: { title: '个人简介', isUserCache: false, keepAlive: true }
      }]
    },
  ]
})

